package notes.java.sjms23.s6_chain;
// 抽象类
public abstract class Leader {

    // 领导名称
    public String name;
    // 下一个审批人
    public Leader nextLeader;

    public Leader(String name) {
        this.name = name;
    }

    // 审批处理
    public abstract void handleRequest(LeaveRequest leaveRequest);

    // 设置下一个审批人
    public void setNextLeader(Leader nextLeader) {
        this.nextLeader = nextLeader;
    }

}